package myschool.dao;

import myschool.entity.ExamResult;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface ExamDao {
    List<ExamResult> findAll();

    int add(ExamResult r);

    List<ExamResult> find(@Param("pageNo")int pageNo,@Param("pageSize") int pageSize, @Param("stuno") Long stuno, @Param("subjectname")String subjectname, @Param("startDate") Date start, @Param("endDate")Date end);
    int findTotal(@Param("stuno") Long stuno, @Param("subjectname")String subjectname, @Param("startDate") Date start, @Param("endDate")Date end);

}
